
import Mock from '../../mockjs/dist/mock-min.js';

let ad = [
	{
		key: "/ad/product/all",
		method: "get",
		param: {
			statu: true
		},
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': [{
					id: "@increment(1)",
					url: "https://m.360buyimg.com/mobilecms/s750x750_jfs/t1/212500/25/24527/181280/63a68deeE810244d6/bd73a7adfb1ffb4a.jpg",
					statu: true,
					productId: 1,
				},{
					id: "@increment(1)",
					url: "https://m.360buyimg.com/mobilecms/s843x843_jfs/t1/176815/10/20538/480822/61210b9fE2ddbe8a1/57f90721aaed3a94.png",
					statu: true,
					productId: 1,
				},{
					id: "@increment(1)",
					url: "https://m.360buyimg.com/mobilecms/s843x843_jfs/t1/190749/5/19159/334734/6120e249E63346b4a/d5c113dc084710f1.jpg",
					statu: true,
					productId: 1,
				}],
			});
		}
	},
	
	{
		key: "/ad/category/all",
		method: "get",
		param: {
			statu: true
		},
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': [{
					id: "@increment(1)",
					name: "老班章",
					statu: true,
					"products|4": [
						{
							'id': '1',
							'name': '@cparagraph()',
							'cover': 'https://bpic.588ku.com//back_origin_min_pic/22/10/31/e823671941ffa9551488625e8be1205c.jpg',
							'price|3-7': /[1-9]/,
							'stock':'@increment(1)',
						}
					]
				},{
					id: "@increment(1)",
					name: "冰岛",
					statu: true,
					"products|4": [
						{
							'id': '1',
							'name': '@cparagraph()',
							'cover': 'https://bpic.588ku.com//back_origin_min_pic/22/10/31/e823671941ffa9551488625e8be1205c.jpg',
							'price|3-7': /[1-9]/,
							'stock':'@increment(1)',
						}
					]
				},{
					id: "@increment(1)",
					name: "营盘",
					statu: true,
					"products|4": [
						{
							'id': '1',
							'name': '@cparagraph()',
							'cover': 'https://bpic.588ku.com//back_origin_min_pic/22/10/31/e823671941ffa9551488625e8be1205c.jpg',
							'price|3-7': /[1-9]/,
							'stock':'@increment(1)',
						}
					]
				},{
					id: "@increment(1)",
					name: "滇红",
					statu: true,
					"products|4": [
						{
							'id': '1',
							'name': '@cparagraph()',
							'cover': 'https://bpic.588ku.com//back_origin_min_pic/22/10/31/e823671941ffa9551488625e8be1205c.jpg',
							'price|3-7': /[1-9]/,
							'stock':'@increment(1)',
						}
					]
				},{
					id: "@increment(1)",
					name: "白茶",
					statu: true,
					"products|4": [
						{
							'id': '1',
							'name': '@cparagraph()',
							'cover': 'https://bpic.588ku.com//back_origin_min_pic/22/10/31/e823671941ffa9551488625e8be1205c.jpg',
							'price|3-7': /[1-9]/,
							'stock':'@increment(1)',
						}
					]
				},],
			});
		}
	},
	
];

export default ad;